package com.xszx.mapper;

import com.xszx.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description:
 * @author:瓦达西瓦
 * @date:2024/10/31
 */
@Repository
public interface UserMapper {

    Integer forBusiness(User user);

    Integer getisSalesOver500(User user);

    void addGood(Goods goods);

    List<Comments> getGoodsComments(Goods goods);

    void updateUser(User user);

    Orders checkOrder(Goods goods);

    Shopping checkShopping(Goods goods);

    Goods getGoods(Goods goods);

    void delGoods(Goods goods);

    void addGoods(Goods goods);

    void updateGoods(Goods goods);

    List<Goods> getSameAddress(User user);

    void userPay(Orders orders);

    List<UserAddress> getUserAddress(User user);

    void addUserAddress(UserAddress userAddress);

    void delUserAddress(UserAddress userAddress);

    void updateUserAddress(UserAddress userAddress);

    double[] LineChart();

    List<Goods> posted(User user);


    List<Orders> sold(User user);

    void changePwd(@Param("pwd") String pwd, @Param("uid") int uid);

    List<Orders> bought(User user);

    List<Comments> checkReviews(User user);

    void delShopping(Shopping shopping);

    List<Goods> getSYGoodsList();

    List<Goods> getSYMHGoodsList(int gtid);
    UserAddress upUserAddress(UserAddress userAddress);

}

